Cross-Origin Resource Sharing
→CORS
Cross-Origin Resource Sharing
跨來源資源共用
2020-07-03 CORS 是什麼? 如何設定 CORS?
2017-05-20 輕鬆理解 Ajax 與跨來源請求
Huli
2018-08-18 原來 CORS 沒有我想像中的簡單
2021-02-19 CORS 完全手冊(一):為什麼會發生 CORS 錯誤? - Huli's blog
2019-01-18 和 CORS 跟 cookie 打交道
2019-01-21 新的取消請求方式 - AbortController
Kalan
AbortController
2018-06-28 这波跨域不亏
2025-01-24 CORSガイドの決定版 | POSTD
CORS-anywhere
GitHub - Rob--W/cors-anywhere: CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request.
code:javascript
// use cors-anywhere to fetch api data
const cors = "https://cors-anywhere.herokuapp.com/";
// origin api url
const url = "https://tw.rter.info/capi.php?=1568944322585";
// fetch api url by cors-anywhere
axios.get(${cors}${url}).then(
(response) => {
const msg = response.data;
document.body.innerHTML = JSON.stringify(msg);
},
(error) => {}
);
Zibri/cloudflare-cors-anywhere: CORS "anywhere" proxy in a Cloudflare worker. DEMO at: https://test.cors.workers.dev/